package com.example.ql.express.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.example.ql.express.utils.operate.CommonOperateCompare;
import com.example.ql.express.utils.operate.OperateCompare;
import com.example.ql.express.utils.operate.ReferenceOperateCompare;
import com.example.ql.express.utils.operate.VitalSignOperateCompare;
import lombok.Getter;

/**
 * 组合
 *
 * @author xuweizhi
 * @since 2021/10/28 11:10
 */
@Getter
@SuppressWarnings("all")
public enum OperateEnum {

    EQUAL(1, null),
    LT(2, null),
    LE(3, null),
    RANGE(4, null),
    GT(5, null),
    GE(6, null),
    COMBINATION(7, new VitalSignOperateCompare()),
    COMMON(8, new CommonOperateCompare()),
    REFERENCE(9, new ReferenceOperateCompare());

    @EnumValue
    int code;

    OperateCompare operateCompare;

    OperateEnum(int code, OperateCompare operateCompare) {
        this.code = code;
        this.operateCompare = operateCompare;
    }
}
